s = int(input())
a = s/2
while(True):
    b = (a+s/a)/2
    if abs(a-b)<0.00001:
        break
    a = b
print(round(b,3))